package com.lex.myapplication;

import android.app.Activity;
import android.os.Bundle;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        ImageView[] ivs = new ImageView[2];
        ivs[0] = new ImageView(this);
        ivs[0].setImageResource(R.mipmap.ic_launcher);
        ivs[1] = new ImageView(this);
        ivs[1].setImageResource(R.mipmap.ic_launcher);

        int viewHeight = 0;
        int playInteval = 3000;
        JTView jtViewPlayer = new JTView(this, ivs, viewHeight, playInteval);
        RelativeLayout.LayoutParams jtaParams = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,200);
        this.addContentView(jtViewPlayer, jtaParams);
    }
}
